<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>doublebind</title>
</head>
<body>
    <div id="app">
        <input v-model="num"/>

        <h2>{{name}}家里有{{num}}个矿</h2>
    </div>

    <script src="./node_modules/vue/dist/vue.js"></script>
    <script>
        var app = new Vue({
            el:"#app",
            data:{
                name:"刘德华",
                num:20
            }
        });
    </script>
</body>
</html>